public class ReportCard {

	public char convertGrades(int testResult) {
		char grade;

		if (testResult >= 90) {
			grade = 'A';
		} else if (testResult >= 80 && testResult < 90) {
			grade = 'B';
		} else if (testResult >= 70 && testResult < 80) {
			grade = 'C';
		} else {
			grade = 'D';
		}
		return grade;
	}

	public static void main(String[] args) {
		ReportCard rc = new ReportCard();
		char yourGrade = rc.convertGrades(88);

		System.out.println("Ваша первая оценка " + yourGrade);
		yourGrade = rc.convertGrades(90);
		System.out.println("Ваша вторая оценка " + yourGrade);

		switch (yourGrade) {
		case 'A':
			System.out.println("ОТЛИЧНЕНЬКО!!!");
			break;
		case 'B':
			System.out.println("Четыре - пиши ещё");
			break;
		case 'C':
			System.out.println("ТРИТАКСИБЕ");
			break;
		case 'D':
			System.out.println("Иди УЧИ!!!");
			break;

		}
	}

}
